]> dgit.raspbian.org Git - gnome-shell.git/commit
workspacesView: Make each WorkspacesView own its set of workspaces
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 11 Sep 2013 14:09:13 +0000 (10:09 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 30 Oct 2013 17:17:39 +0000 (13:17 -0400)
commitd5cd534320b1ca86f2986191c2336eb8ab6b6cac
treeaafd32f43119a69ae92663784c10af6a36c0ecdb
parenta5a6fd3bc213e5d73976593ba1d3c39a52a4bebd
workspacesView: Make each WorkspacesView own its set of workspaces

Right now, the workspace update code is complex and spread across parts:
WorkspacesView takes a set of workspaces and looks like it owns them, but
WorkspacesDisplay is actually in charge of setting them up and creating
new ones for each WorkspacesView.

Change initialization and handling to move all of the creation/destruction
responsibilities to WorkspacesView.

We pass in monitorIndex into each WorkspacesView, which is a lie in the
workspacesOnlyOnPrimary case, as the primary WorkspacesView currently has
the responsibility of handling the extra workspaces on all the other
monitors. The commit will clean this up and punt the responsibility back
to WorkspacesDisplay.
js/ui/workspacesView.js